<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui" xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core">

<ui:composition template="/template/mainTemplate.xhtml">
	<ui:define name="titulo">
		<h:outputLabel value="MusicBay.com - Login"/>
	</ui:define>
	<ui:define name="cont">
		<p:dialog header="Login - MusicBay.com" visible="true" closable="true" widgetVar="diag"
			draggable="true" resizable="false" styleClass="diagLogin" modal="true">

			<form action="#{request.contextPath}/j_spring_security_check" method="post">
				<h:panelGrid columns="2" cellpadding="7">
					<h:outputLabel for="j_username" value="#{msg.user} *" styleClass="label" />
					<p:inputText id="j_username" required="true" />
					<h:outputLabel for="j_password" value="#{msg.senha} *" styleClass="label" />
					<p:password id="j_password" required="true" />
				</h:panelGrid>
				
				<h:panelGrid columns="1">
					<h:commandButton value="#{msg.login}" styleClass="loginB"/>
				</h:panelGrid>
			</form>
		</p:dialog>

	</ui:define>
</ui:composition>
</html>